<?php
/**获取银行信息*/
class GetBankInfo extends APIBase{

	public $tag = "GetBankInfo";
	public $isLogin = true;

	public function before()
	{
		return true;
	}

	public function logic()
	{
		
		$rets = $this->data_redis->hMGet("hu:{$this->uid}", array('money','bank', 'bank_password', 'is_set_bank_password') );
		$rets['money'] = (int) $rets['money'];
		$rets['bank'] = (int) $rets['bank'];
		$rets['is_set_bank_password'] = (int) $rets['is_set_bank_password'];

		
		$this->returnData($rets, 0, "get bank info succ.\n");

	}

	public function after()
	{
		$this->deinitDataRedis();
	}
}
